3.21.79 \(\int \frac {a+b x}{\sqrt {d+e x} (a^2+2 a b x+b^2 x^2)^2} \, dx\) [2079]

3.21.79.1 Optimal result
3.21.79.2 Mathematica [A] (verified)
3.21.79.3 Rubi [A] (verified)
3.21.79.4 Maple [A] (verified)
3.21.79.5 Fricas [B] (verification not implemented)
3.21.79.6 Sympy [F(-1)]
3.21.79.7 Maxima [F(-2)]
3.21.79.8 Giac [A] (verification not implemented)
3.21.79.9 Mupad [B] (verification not implemented)

3.21.79.1 Optimal result

Integrand size = 33, antiderivative size = 114 \[ \int \frac {a+b x}{\sqrt {d+e x} \left (a^2+2 a b x+b^2 x^2\right )^2} \, dx=-\frac {\sqrt {d+e x}}{2 (b d-a e) (a+b x)^2}+\frac {3 e \sqrt {d+e x}}{4 (b d-a e)^2 (a+b x)}-\frac {3 e^2 \text {arctanh}\left (\frac {\sqrt {b} \sqrt {d+e x}}{\sqrt {b d-a e}}\right )}{4 \sqrt {b} (b d-a e)^{5/2}} \]

output
-3/4*e^2*arctanh(b^(1/2)*(e*x+d)^(1/2)/(-a*e+b*d)^(1/2))/(-a*e+b*d)^(5/2)/ 
b^(1/2)-1/2*(e*x+d)^(1/2)/(-a*e+b*d)/(b*x+a)^2+3/4*e*(e*x+d)^(1/2)/(-a*e+b 
*d)^2/(b*x+a)
 
3.21.79.2 Mathematica [A] (verified)

Time = 0.09 (sec) , antiderivative size = 96, normalized size of antiderivative = 0.84 \[ \int \frac {a+b x}{\sqrt {d+e x} \left (a^2+2 a b x+b^2 x^2\right )^2} \, dx=\frac {1}{4} \left (\frac {\sqrt {d+e x} (-2 b d+5 a e+3 b e x)}{(b d-a e)^2 (a+b x)^2}+\frac {3 e^2 \arctan \left (\frac {\sqrt {b} \sqrt {d+e x}}{\sqrt {-b d+a e}}\right )}{\sqrt {b} (-b d+a e)^{5/2}}\right ) \]

input
Integrate[(a + b*x)/(Sqrt[d + e*x]*(a^2 + 2*a*b*x + b^2*x^2)^2),x]
 
output
((Sqrt[d + e*x]*(-2*b*d + 5*a*e + 3*b*e*x))/((b*d - a*e)^2*(a + b*x)^2) + 
(3*e^2*ArcTan[(Sqrt[b]*Sqrt[d + e*x])/Sqrt[-(b*d) + a*e]])/(Sqrt[b]*(-(b*d 
) + a*e)^(5/2)))/4
 
3.21.79.3 Rubi [A] (verified)

Time = 0.25 (sec) , antiderivative size = 122, normalized size of antiderivative = 1.07, number of steps used = 7, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {1184, 27, 52, 52, 73, 221}

Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.

\(\displaystyle \int \frac {a+b x}{\left (a^2+2 a b x+b^2 x^2\right )^2 \sqrt {d+e x}} \, dx\)

\(\Big \downarrow \) 1184

\(\displaystyle b^4 \int \frac {1}{b^4 (a+b x)^3 \sqrt {d+e x}}dx\)

\(\Big \downarrow \) 27

\(\displaystyle \int \frac {1}{(a+b x)^3 \sqrt {d+e x}}dx\)

\(\Big \downarrow \) 52

\(\displaystyle -\frac {3 e \int \frac {1}{(a+b x)^2 \sqrt {d+e x}}dx}{4 (b d-a e)}-\frac {\sqrt {d+e x}}{2 (a+b x)^2 (b d-a e)}\)

\(\Big \downarrow \) 52

\(\displaystyle -\frac {3 e \left (-\frac {e \int \frac {1}{(a+b x) \sqrt {d+e x}}dx}{2 (b d-a e)}-\frac {\sqrt {d+e x}}{(a+b x) (b d-a e)}\right )}{4 (b d-a e)}-\frac {\sqrt {d+e x}}{2 (a+b x)^2 (b d-a e)}\)

\(\Big \downarrow \) 73

\(\displaystyle -\frac {3 e \left (-\frac {\int \frac {1}{a+\frac {b (d+e x)}{e}-\frac {b d}{e}}d\sqrt {d+e x}}{b d-a e}-\frac {\sqrt {d+e x}}{(a+b x) (b d-a e)}\right )}{4 (b d-a e)}-\frac {\sqrt {d+e x}}{2 (a+b x)^2 (b d-a e)}\)

\(\Big \downarrow \) 221

\(\displaystyle -\frac {3 e \left (\frac {e \text {arctanh}\left (\frac {\sqrt {b} \sqrt {d+e x}}{\sqrt {b d-a e}}\right )}{\sqrt {b} (b d-a e)^{3/2}}-\frac {\sqrt {d+e x}}{(a+b x) (b d-a e)}\right )}{4 (b d-a e)}-\frac {\sqrt {d+e x}}{2 (a+b x)^2 (b d-a e)}\)

input
Int[(a + b*x)/(Sqrt[d + e*x]*(a^2 + 2*a*b*x + b^2*x^2)^2),x]
 
output
-1/2*Sqrt[d + e*x]/((b*d - a*e)*(a + b*x)^2) - (3*e*(-(Sqrt[d + e*x]/((b*d 
 - a*e)*(a + b*x))) + (e*ArcTanh[(Sqrt[b]*Sqrt[d + e*x])/Sqrt[b*d - a*e]]) 
/(Sqrt[b]*(b*d - a*e)^(3/2))))/(4*(b*d - a*e))
 

3.21.79.3.1 Defintions of rubi rules used

rule 27
Int[(a_)*(Fx_), x_Symbol] :> Simp[a   Int[Fx, x], x] /; FreeQ[a, x] &&  !Ma 
tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
 

rule 52
Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[ 
(a + b*x)^(m + 1)*((c + d*x)^(n + 1)/((b*c - a*d)*(m + 1))), x] - Simp[d*(( 
m + n + 2)/((b*c - a*d)*(m + 1)))   Int[(a + b*x)^(m + 1)*(c + d*x)^n, x], 
x] /; FreeQ[{a, b, c, d, n}, x] && ILtQ[m, -1] && FractionQ[n] && LtQ[n, 0]
 

rule 73
Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> With[ 
{p = Denominator[m]}, Simp[p/b   Subst[Int[x^(p*(m + 1) - 1)*(c - a*(d/b) + 
 d*(x^p/b))^n, x], x, (a + b*x)^(1/p)], x]] /; FreeQ[{a, b, c, d}, x] && Lt 
Q[-1, m, 0] && LeQ[-1, n, 0] && LeQ[Denominator[n], Denominator[m]] && IntL 
inearQ[a, b, c, d, m, n, x]
 

rule 221
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[-a/b, 2]/a)*ArcTanh[x 
/Rt[-a/b, 2]], x] /; FreeQ[{a, b}, x] && NegQ[a/b]
 

rule 1184
Int[((d_.) + (e_.)*(x_))^(m_.)*((f_.) + (g_.)*(x_))^(n_.)*((a_) + (b_.)*(x_ 
) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Simp[1/c^p   Int[(d + e*x)^m*(f + g*x 
)^n*(b/2 + c*x)^(2*p), x], x] /; FreeQ[{a, b, c, d, e, f, g, m, n}, x] && E 
qQ[b^2 - 4*a*c, 0] && IntegerQ[p]
 
3.21.79.4 Maple [A] (verified)

Time = 0.33 (sec) , antiderivative size = 102, normalized size of antiderivative = 0.89

method result size
pseudoelliptic \(\frac {\frac {3 \arctan \left (\frac {b \sqrt {e x +d}}{\sqrt {\left (a e -b d \right ) b}}\right ) e^{2} \left (b x +a \right )^{2}}{4}+\frac {5 \sqrt {\left (a e -b d \right ) b}\, \left (\frac {\left (3 e x -2 d \right ) b}{5}+a e \right ) \sqrt {e x +d}}{4}}{\left (a e -b d \right )^{2} \left (b x +a \right )^{2} \sqrt {\left (a e -b d \right ) b}}\) \(102\)
derivativedivides \(2 e^{2} \left (\frac {\sqrt {e x +d}}{4 \left (a e -b d \right ) \left (b \left (e x +d \right )+a e -b d \right )^{2}}+\frac {\frac {3 \sqrt {e x +d}}{8 \left (a e -b d \right ) \left (b \left (e x +d \right )+a e -b d \right )}+\frac {3 \arctan \left (\frac {b \sqrt {e x +d}}{\sqrt {\left (a e -b d \right ) b}}\right )}{8 \left (a e -b d \right ) \sqrt {\left (a e -b d \right ) b}}}{a e -b d}\right )\) \(138\)
default \(2 e^{2} \left (\frac {\sqrt {e x +d}}{4 \left (a e -b d \right ) \left (b \left (e x +d \right )+a e -b d \right )^{2}}+\frac {\frac {3 \sqrt {e x +d}}{8 \left (a e -b d \right ) \left (b \left (e x +d \right )+a e -b d \right )}+\frac {3 \arctan \left (\frac {b \sqrt {e x +d}}{\sqrt {\left (a e -b d \right ) b}}\right )}{8 \left (a e -b d \right ) \sqrt {\left (a e -b d \right ) b}}}{a e -b d}\right )\) \(138\)

input
int((b*x+a)/(b^2*x^2+2*a*b*x+a^2)^2/(e*x+d)^(1/2),x,method=_RETURNVERBOSE)
 
output
5/4*(3/5*arctan(b*(e*x+d)^(1/2)/((a*e-b*d)*b)^(1/2))*e^2*(b*x+a)^2+((a*e-b 
*d)*b)^(1/2)*(1/5*(3*e*x-2*d)*b+a*e)*(e*x+d)^(1/2))/((a*e-b*d)*b)^(1/2)/(a 
*e-b*d)^2/(b*x+a)^2
 
3.21.79.5 Fricas [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 268 vs. \(2 (94) = 188\).

Time = 0.39 (sec) , antiderivative size = 549, normalized size of antiderivative = 4.82 \[ \int \frac {a+b x}{\sqrt {d+e x} \left (a^2+2 a b x+b^2 x^2\right )^2} \, dx=\left [\frac {3 \, {\left (b^{2} e^{2} x^{2} + 2 \, a b e^{2} x + a^{2} e^{2}\right )} \sqrt {b^{2} d - a b e} \log \left (\frac {b e x + 2 \, b d - a e - 2 \, \sqrt {b^{2} d - a b e} \sqrt {e x + d}}{b x + a}\right ) - 2 \, {\left (2 \, b^{3} d^{2} - 7 \, a b^{2} d e + 5 \, a^{2} b e^{2} - 3 \, {\left (b^{3} d e - a b^{2} e^{2}\right )} x\right )} \sqrt {e x + d}}{8 \, {\left (a^{2} b^{4} d^{3} - 3 \, a^{3} b^{3} d^{2} e + 3 \, a^{4} b^{2} d e^{2} - a^{5} b e^{3} + {\left (b^{6} d^{3} - 3 \, a b^{5} d^{2} e + 3 \, a^{2} b^{4} d e^{2} - a^{3} b^{3} e^{3}\right )} x^{2} + 2 \, {\left (a b^{5} d^{3} - 3 \, a^{2} b^{4} d^{2} e + 3 \, a^{3} b^{3} d e^{2} - a^{4} b^{2} e^{3}\right )} x\right )}}, \frac {3 \, {\left (b^{2} e^{2} x^{2} + 2 \, a b e^{2} x + a^{2} e^{2}\right )} \sqrt {-b^{2} d + a b e} \arctan \left (\frac {\sqrt {-b^{2} d + a b e} \sqrt {e x + d}}{b e x + b d}\right ) - {\left (2 \, b^{3} d^{2} - 7 \, a b^{2} d e + 5 \, a^{2} b e^{2} - 3 \, {\left (b^{3} d e - a b^{2} e^{2}\right )} x\right )} \sqrt {e x + d}}{4 \, {\left (a^{2} b^{4} d^{3} - 3 \, a^{3} b^{3} d^{2} e + 3 \, a^{4} b^{2} d e^{2} - a^{5} b e^{3} + {\left (b^{6} d^{3} - 3 \, a b^{5} d^{2} e + 3 \, a^{2} b^{4} d e^{2} - a^{3} b^{3} e^{3}\right )} x^{2} + 2 \, {\left (a b^{5} d^{3} - 3 \, a^{2} b^{4} d^{2} e + 3 \, a^{3} b^{3} d e^{2} - a^{4} b^{2} e^{3}\right )} x\right )}}\right ] \]

input
integrate((b*x+a)/(b^2*x^2+2*a*b*x+a^2)^2/(e*x+d)^(1/2),x, algorithm="fric 
as")
 
output
[1/8*(3*(b^2*e^2*x^2 + 2*a*b*e^2*x + a^2*e^2)*sqrt(b^2*d - a*b*e)*log((b*e 
*x + 2*b*d - a*e - 2*sqrt(b^2*d - a*b*e)*sqrt(e*x + d))/(b*x + a)) - 2*(2* 
b^3*d^2 - 7*a*b^2*d*e + 5*a^2*b*e^2 - 3*(b^3*d*e - a*b^2*e^2)*x)*sqrt(e*x 
+ d))/(a^2*b^4*d^3 - 3*a^3*b^3*d^2*e + 3*a^4*b^2*d*e^2 - a^5*b*e^3 + (b^6* 
d^3 - 3*a*b^5*d^2*e + 3*a^2*b^4*d*e^2 - a^3*b^3*e^3)*x^2 + 2*(a*b^5*d^3 - 
3*a^2*b^4*d^2*e + 3*a^3*b^3*d*e^2 - a^4*b^2*e^3)*x), 1/4*(3*(b^2*e^2*x^2 + 
 2*a*b*e^2*x + a^2*e^2)*sqrt(-b^2*d + a*b*e)*arctan(sqrt(-b^2*d + a*b*e)*s 
qrt(e*x + d)/(b*e*x + b*d)) - (2*b^3*d^2 - 7*a*b^2*d*e + 5*a^2*b*e^2 - 3*( 
b^3*d*e - a*b^2*e^2)*x)*sqrt(e*x + d))/(a^2*b^4*d^3 - 3*a^3*b^3*d^2*e + 3* 
a^4*b^2*d*e^2 - a^5*b*e^3 + (b^6*d^3 - 3*a*b^5*d^2*e + 3*a^2*b^4*d*e^2 - a 
^3*b^3*e^3)*x^2 + 2*(a*b^5*d^3 - 3*a^2*b^4*d^2*e + 3*a^3*b^3*d*e^2 - a^4*b 
^2*e^3)*x)]
 
3.21.79.6 Sympy [F(-1)]

Timed out. \[ \int \frac {a+b x}{\sqrt {d+e x} \left (a^2+2 a b x+b^2 x^2\right )^2} \, dx=\text {Timed out} \]

input
integrate((b*x+a)/(b**2*x**2+2*a*b*x+a**2)**2/(e*x+d)**(1/2),x)
 
output
Timed out
 
3.21.79.7 Maxima [F(-2)]

Exception generated. \[ \int \frac {a+b x}{\sqrt {d+e x} \left (a^2+2 a b x+b^2 x^2\right )^2} \, dx=\text {Exception raised: ValueError} \]

input
integrate((b*x+a)/(b^2*x^2+2*a*b*x+a^2)^2/(e*x+d)^(1/2),x, algorithm="maxi 
ma")
 
output
Exception raised: ValueError >> Computation failed since Maxima requested 
additional constraints; using the 'assume' command before evaluation *may* 
 help (example of legal syntax is 'assume(a*e-b*d>0)', see `assume?` for m 
ore detail
 
3.21.79.8 Giac [A] (verification not implemented)

Time = 0.27 (sec) , antiderivative size = 148, normalized size of antiderivative = 1.30 \[ \int \frac {a+b x}{\sqrt {d+e x} \left (a^2+2 a b x+b^2 x^2\right )^2} \, dx=\frac {3 \, e^{2} \arctan \left (\frac {\sqrt {e x + d} b}{\sqrt {-b^{2} d + a b e}}\right )}{4 \, {\left (b^{2} d^{2} - 2 \, a b d e + a^{2} e^{2}\right )} \sqrt {-b^{2} d + a b e}} + \frac {3 \, {\left (e x + d\right )}^{\frac {3}{2}} b e^{2} - 5 \, \sqrt {e x + d} b d e^{2} + 5 \, \sqrt {e x + d} a e^{3}}{4 \, {\left (b^{2} d^{2} - 2 \, a b d e + a^{2} e^{2}\right )} {\left ({\left (e x + d\right )} b - b d + a e\right )}^{2}} \]

input
integrate((b*x+a)/(b^2*x^2+2*a*b*x+a^2)^2/(e*x+d)^(1/2),x, algorithm="giac 
")
 
output
3/4*e^2*arctan(sqrt(e*x + d)*b/sqrt(-b^2*d + a*b*e))/((b^2*d^2 - 2*a*b*d*e 
 + a^2*e^2)*sqrt(-b^2*d + a*b*e)) + 1/4*(3*(e*x + d)^(3/2)*b*e^2 - 5*sqrt( 
e*x + d)*b*d*e^2 + 5*sqrt(e*x + d)*a*e^3)/((b^2*d^2 - 2*a*b*d*e + a^2*e^2) 
*((e*x + d)*b - b*d + a*e)^2)
 
3.21.79.9 Mupad [B] (verification not implemented)

Time = 10.98 (sec) , antiderivative size = 142, normalized size of antiderivative = 1.25 \[ \int \frac {a+b x}{\sqrt {d+e x} \left (a^2+2 a b x+b^2 x^2\right )^2} \, dx=\frac {\frac {5\,e^2\,\sqrt {d+e\,x}}{4\,\left (a\,e-b\,d\right )}+\frac {3\,b\,e^2\,{\left (d+e\,x\right )}^{3/2}}{4\,{\left (a\,e-b\,d\right )}^2}}{b^2\,{\left (d+e\,x\right )}^2-\left (2\,b^2\,d-2\,a\,b\,e\right )\,\left (d+e\,x\right )+a^2\,e^2+b^2\,d^2-2\,a\,b\,d\,e}+\frac {3\,e^2\,\mathrm {atan}\left (\frac {\sqrt {b}\,\sqrt {d+e\,x}}{\sqrt {a\,e-b\,d}}\right )}{4\,\sqrt {b}\,{\left (a\,e-b\,d\right )}^{5/2}} \]

input
int((a + b*x)/((d + e*x)^(1/2)*(a^2 + b^2*x^2 + 2*a*b*x)^2),x)
 
output
((5*e^2*(d + e*x)^(1/2))/(4*(a*e - b*d)) + (3*b*e^2*(d + e*x)^(3/2))/(4*(a 
*e - b*d)^2))/(b^2*(d + e*x)^2 - (2*b^2*d - 2*a*b*e)*(d + e*x) + a^2*e^2 + 
 b^2*d^2 - 2*a*b*d*e) + (3*e^2*atan((b^(1/2)*(d + e*x)^(1/2))/(a*e - b*d)^ 
(1/2)))/(4*b^(1/2)*(a*e - b*d)^(5/2))